<?php
/**
 * UrlFeed.php
 * 
 * @category    Madoqua
 * @package     View
 * @subpackage  Helper
 */

/** base class */
require_once 'Madoqua/View/Helper/Abstract.php';

/**
 * Madoqua_View_Helper_UrlFeed
 * 
 * @category    Madoqua
 * @package     View
 * @subpackage  Helper
 */
class Madoqua_View_Helper_UrlFeed extends Madoqua_View_Helper_Abstract 
{
    /**
     * generate a link to the overview feed
     *
     * @return string
     */
    public function urlFeed($type = 'rss')
    {
        return $this->url(array(
            'module' => 'feed',
            'controller' => 'post',
            'type' => $type
        ), 'default', true);
        //well that was rather straightforward =]
    }
}